gbfile.c: Fix MSVC signed/unsigned mismatch warning.
authoroliskoli <oliskoli>
Fri, 22 Aug 2008 21:37:44 +0000 (21:37 +0000)
committeroliskoli <oliskoli>
Fri, 22 Aug 2008 21:37:44 +0000 (21:37 +0000)
gbfile.c

index 925edd8489b56a839144121e1e2d28cd277c0edd..678093d8481dcc49f9639b570eab29dbea58289f 100644 (file)
--- a/gbfile.c
+++ b/gbfile.c
@@ -256,7 +256,7 @@ gbfread(void *buf, const gbsize_t size, const gbsize_t members, gbfile *file)
                result += gzread(file->handle.gz, target, count);
                
                /* Check for an incomplete READ */
-               if ((members == 1) && (size > 1) && (result > 0) && (result < size))
+               if ((members == 1) && (size > 1) && (result > 0) && (result < (int)size))
                        fatal("%s: Unexpected end of files (EOF)!\n", file->module);
 
                result /= size;